package com.yunban.project.template.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.lab1024.sa.base.ProjectConstants;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 63231
 */
@Data
@Schema(description = "模板组")
@TableName(ProjectConstants.TEMPLATE_TABLE_PREFIX + "template_group")
public class TemplateGroup implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private String img;
    @Schema(description = "预览html")
    private String html;
    // 是否公开
    private boolean hasPublic = false;
    @TableLogic
    private boolean deleted = false;
    @TableField(fill = FieldFill.INSERT)
    private long createdBy;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}